
var testhost="https://growth.tjjshop.cn/index/index/proxyrequest";
var host="https://growth.taojiji.com/index/index/proxyrequest";
var apiUrl="/api"

if(window.location.href.indexOf('https://growth.tjjshop.cn')>-1){
    apiUrl=testhost
}

if(window.location.href.indexOf('https://growth.taojiji.com')>-1){
    apiUrl=host
}
var param={
    indexHome:{//首页
        m:'Home',
        a:'index'  
    },
    detailOnePrice:{//一元购详情
        m:'OnePrice',
        a:'detail'
    },
    loginLoginOut:{//退出登录
        m:'login',
        a:'LoginOut'
    },
    indexOnePrice:{//一元购首页
        m:'OnePrice',
        a:'index'
    },
    earnDetail:{//赚赚详情
        m:'earn',
        a:'Detail'
    },
    boostindex:{//助力首页
        m:'boost',
        a:'index'
    },
    earnindex:{//赚赚首页
        m:'earn',
        a:'index'
    },
    boostDetail:{//助力详情
        m:'boost',
        a:'Detail'
    },
    buyNumHome:{//次日复购人数
        m:'Home',
        a:'buyNum'
    },
    buySevenHome:{//7日复购率
        m:'Home',
        a:'buySeven'
    },
    payOldConvertHome:{//付费老客转化率
        m:'Home',
        a:'payOldConvert'
    },
    buyOneHome:{//次日复购率
        m:'Home',
        a:'buyOne'
    },
    noPayOldConvertHome:{//未付费老客转化率
        m:'Home',
        a:'noPayOldConvert'
    },
    newConvertHome:{//新客转化率
        m:'Home',
        a:'newConvert'
    },
    oldConversionHome:{//老客转化率 6.6号新加
        m:'Home',
        a:'oldConversion'
    },
    newConversionHome:{//新客转化率 6.6号新加
        m:'Home',
        a:'newConversion'
    },
    regConvertHome:{//注册转化率
        m:'Home',
        a:'regConvert'
    },
    oldNumHome:{//付费老客
        m:'Home',
        a:'oldNum'
    },
    newNumHome:{//付费新客
        m:'Home',
        a:'newNum'
    },
    newRegisterHome:{//新增注册
        m:'Home',
        a:'newRegister'
    },
    newActivateHome:{//新增激活
        m:'Home',
        a:'newActivate'
    },
    noOneReturnHome:{//退货率详情（非一元购）
        m:'Home',
        a:'noOneReturn'
    },
    noOneCancelHome:{//取消率详情（非一元购）
        m:'Home',
        a:'noOneCancel'
    },
    noOneUserAmountHome:{//客单价详情（非一元购）
        m:'Home',
        a:'noOneUserAmount'
    },
    noOneOrderHome:{//订单数详情（非一元购）
        m:'Home',
        a:'noOneOrder'
    },
    uvHome:{//UV详情
        m:'Home',
        a:'uv'
    },
    percentHome:{//转化率详情
        m:'Home',
        a:'percent'
    },
    userAmountHome:{//客单价详情
        m:'Home',
        a:'userAmount'
    },
    amountHome:{//销售额详情
        m:'Home',
        a:'amount'
    },
    OrderNumHome:{//订单数详情
        m:'Home',
        a:'OrderNum'
    },
  oldDayConversionHome:{//新-老客转化率
    m:'Home',
    a:'oldDayConversion'
  },
  newDayConversionHome:{//新-新客转化率
    m:'Home',
    a:'newDayConversion'
  },
    TopBar:{
        m:'Bar',
        a:'TopBar' 
    }
}
var urlKey={
    orderNum:param.OrderNumHome,
    amount:param.amountHome,
    percent:param.percentHome,
    userAmount:param.userAmountHome,
    uv:param.uvHome,
    noOneCancel:param.noOneCancelHome,
    noOneOrder:param.noOneOrderHome,
    noOneUserAmount:param.noOneUserAmountHome,
    noOneReturn:param.noOneReturnHome,
    buy1:param.buyOneHome,
    buy7:param.buySevenHome,
    buyNum:param.buyNumHome,
    new:param.newNumHome,
    old:param.oldNumHome,
    newActivate:param.newActivateHome,
    newConvert:param.newConvertHome,
    newRegister:param.newRegisterHome,
    noPayOldConvert:param.noPayOldConvertHome,
    payOldConvert:param.payOldConvertHome,
    regConvert:param.regConvertHome,
    newConversion:param.newConversionHome,
    oldConversion:param.oldConversionHome,
    newDayConversion:param.newDayConversionHome,
    oldDayConversion:param.oldDayConversionHome
}
export default{
    apiUrl,
    param,
    urlKey
}
